<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<script language="javascript" src="../script/common.js" type="text/javascript"></script>
 	<meta name="author" content="liunan">
	<title>POS规格</title>
	<script type="text/javascript">	
	var org = Common.cOrg();	//当前单位	
	var qt = {};				//数据表格对象
	var inited = false;			//初始化标志	
	
	function load(){
		Eui.showNavigation();
		createTable();
	}
	function checkQuery(){
		if(!checkForm(searchForm))return;
		qt.showTable();
	}
	function createTable(){
		var columns = [];
		columns[0]={type:"radio"} 
		qt = new QueryTable("pos_type_query","searchForm","datalist",columns)
		qt.showTable();
	}	
	function getBackValue(){
		var radio = qt.getRadioValue(true);
			if(radio){
				var v = {id : radio[0],
						 spec : radio[1]
				}
			}
			
		return v;	
	}
	function onSave(){
		var v = getBackValue();
		if(v==null){
			showInformation("请选择POS规格");return;
		}else{
			dialogBackValue(v);
		}
	}
	</script>
</head>
<body onload="load()">
	<!--查询静态页面部分-->
	<div id="listview">	
		<!--查询条件form-->
		<div class="searchForm">
			<form id="searchForm" name="searchForm">
				<table cellSpacing=0 cellPadding=4 width="100%" border=0>
					<tr>
						<td><label>规格名称</label> <input type="text" name=name></td>
						<td><label>厂商</label> <input type="text" name=factory></td>
						<td><button type="button" onclick="checkQuery()">查 询</button></td>
					</tr>
				</table>
			</form>
		</div>
		<div id=datalist></div>
	</div>
</body>
</html>
